module.exports = {
    userFormatError: {
        code: '10001',
        message: '用户名密码为空',
        result: ''
    },
    userAlreadyExited: {
        code: '10002',
        message: '用户已经存在',
        result: ''
    },
    userRegisterError: {
        code: '10003',
        message: '用户注册错误',
        result: ''
    },
    userDoesNotExist: {
        code: '10004',
        message: '用户不存在',
        result: ''
    },
    userLoginError: {
        code: '10005',
        message: '用户登陆失败',
        result: ''
    },
    invalidPassword: {
        code: '10006',
        message: '密码错误',
        result: ''
    },
    tokenExpiredError: {
        code: '10101',
        message: 'token过期',
        result: ''
    },
    invalidToken: {
        code: '10102',
        message: '无效token',
        result: ''
    },
    hadNotAdminPermission: {
        code: '10103',
        message: '没有管理员权限',
        result: ''
    },
    fileUploadError: {
        code: '10201',
        message: '商品图片上传失败',
        result: ''
    },
    unSupportedFileType: {
        code: '10202',
        message: '不支持的图片格式',
        result: ''
    },
    goodsFormatError: {
        code: '10203',
        message: '商品参数格式错误',
        result: ''
    },
    publishGoodsError: {
        code: '10204',
        message: '商品发布失败',
        result: ''
    },
    invalidGoodsId: {
        code: '10205',
        message: '待修改的商品不存在',
        result: ''
    },
    errorRequest: {
        code: '00001',
        message: '请求参数不合法',
        result: ''
    },
    errorType: {
        code: '00002',
        message: '参数格式错误',
        result: ''
    },
    findGoodsErr: {
        code: '10206',
        message: '商品查询失败',
        result: ''
    },
    changeGoodsTypeError: {
        code: '10207',
        message: '商品状态更改失败',
        result: ''
    }

}